<?php

class MissingTranslationForm extends CFormModel
{
	public $language;
	public $category;
	public $message;
	public $translation;

	/**
	 * Declares the validation rules.
	 */
	public function rules()
	{
		return array(
			// language - on: admin
			array('language', 'length', 'on' => 'admin', 'allowEmpty' => false, 'min' => 1, 'max' => 16),
			
			// category - on: admin
			array('category', 'length', 'on' => 'admin', 'allowEmpty' => false, 'min' => 1, 'max' => 32),
			
			// message - on: admin
			array('message', 'length', 'on' => 'admin', 'allowEmpty' => false, 'min' => 1),
			
			// translation - on: admin
			array('translation', 'safe', 'on' => 'admin'),
		);
	}
}